home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 003.dms / 003.adf / TEXT / chapter1.txt < prev    next >
Text File  |  1992-09-02  |  5KB  |  137 lines

  1. REVISION 2
  2. ----------
  3.               The Absolute Beginners Guide To Amos V1.0
  4.               ------------------------------------------
  5.                           by A.Pine (C) 1994
  6.                           ------------------
  7.                               Chapter One
  8.                               -----------
  9.  
  10. Right let`s get things out in the open right at the start, I am not an Amos
  11. expert, but then again I am not a beginner, the purpose of these tutorials
  12. are to help complete beginners and by beginners I mean people who know how
  13. to load Amos but are confused by the hundreds of commands and want a simple
  14. explanation of what they do. 
  15.  
  16.  
  17. Note: You can read these text files from inside Amos by pressing the HELP
  18.       key which, providing your disk is set up right, will load your HELP
  19.       Acc, click on the disk icon to load a text file.  After reading a 
  20.       chapter you can quit the text reader and load in the examples
  21.       Amos programs.
  22.  
  23.  
  24.  
  25. The best place to start is at the beginning, so I will be taking you step by
  26. step through some simple but very useful commands, when you have finished
  27. reading this chapter load in EXAMPLE1.Amos, but read the rest of this chapter
  28. first.  Don`t worry if you do not understand everything first time as the 
  29. example program offers more information and advice on this chapter. 
  30.  
  31.  
  32. These are the commands that we will be covering in this chapter:
  33.  
  34. CLS N
  35.  
  36. PAPER N
  37.  
  38. CURS OFF
  39.  
  40. HIDE
  41.  
  42. PRINT 
  43.  
  44. WAIT KEY
  45.  
  46. EDIT
  47.  
  48. I bet you can already guess what some of the above commands do!
  49. Here is a detailed rundown on each.
  50.  
  51. CLS N
  52. -----
  53. CLS is an abbreviation of CLear Screen and does exactly that, it clears the
  54. screen to any colour you want, that is what the N stands for, N in this case
  55. can be any number from 0 to 15, the number you assign to CLS represents a
  56. colour so if you typed CLS 0 Amos would clear the screen of any text or 
  57. graphics and turn the screen black. 
  58. When you load EXAMPLE1.Amos try changing the number after CLS to see it`s
  59. effect, don`t worry you can`t do any harm by typing CLS 197540 or something,
  60. Amos will just tell you that you  have a syntax error in your program and 
  61. place the cursor on the offending line.
  62.  
  63. Paper N
  64. -------
  65. Paper is the background colour of any text you PRINT to the screen, the N
  66. works exactly the same as the N in CLS N.  This is one of those commands
  67. that you will understand better by changing the value of N and running the
  68. example program, make sure you tinker with it to understand it properly.
  69.  
  70. CURS OFF
  71. --------
  72. This is a nice straight forward command, it simply gets rid of the flashing
  73. text cursor that would otherwise appear on screen.  You can also use CURS ON
  74. to reinstate the cursor if needed.  Try changing or deleting the CURS OFF 
  75. command to see it`s effects in action.
  76.  
  77. HIDE
  78. ----
  79. Luckily for me this command is easy to use and easy to describe, this 
  80. literally HIDEs the mouse pointer from view while your program runs.
  81. The opposite to HIDE is SHOW which reinstates the mouse pointer.
  82.  
  83. PRINT
  84. -----
  85. PRINT enables you to PRINT text to the screen, sounds great but there is a
  86. small catch, whatever you want PRINTed must be inside quotes this isn`t as 
  87. bad as it sounds when you look at the following examples,
  88.  
  89. PRINT "HELLO THERE"
  90. PRINT "JUST REMEMBER TO PUT"
  91. PRINT "THE QUOTES"
  92. PRINT "BEFORE AND AFTER YOUR TEXT
  93. PRINT "Don`t forget you can use numbers and symbols as well"
  94. PRINT "LIKE THIS  @#$%^&*()_+|1234567890"
  95.  
  96. Take a close look at EXAMPLE1.amos and try changing the text inside the 
  97. quotes.
  98.  
  99.  
  100. WAIT KEY
  101. --------
  102. One of my favourite commands this one, nice and straight forward and 
  103. powerful.  WAIT KEY will force Amos to WAIT until a KEY is pressed by the
  104. user.  Try taking this out of EXAMPLE1.Amos to see what happens.
  105.  
  106.  
  107. EDIT
  108. ----
  109. Edit stops your program and returns you back to the EDITor where you can 
  110. continue adding to and making changes to your masterpiece.
  111. This command is not really necessary at all as all you have to do is press
  112. the space bar to return to the Editor when a program ends.  
  113. EDIT just saves you pressing the space bar and looks cleaner and neater.
  114. Delete it from EXAMPLE1.Amos to see what it`s like without it.
  115.  
  116. OK, we have covered seven commands already, I know it`s a lot to take on
  117. board and understand in one go so read the above explanations of each 
  118. command again.  It doesn`t matter wether you can remember them but it does
  119. matter if you can UNDERSTAND them.  After loading EXAMPLE1.Amos and playing 
  120. about with it for a while get a note book and jot down briefly in your own
  121. words what each command does because I can guarantee you that you will not
  122. remember them later on and a quick glance at your notes will refresh your
  123. memory, also if you have an Amos manual (some people own the coverdisk 
  124. version from Amiga Format) look up each of the above commands for a 
  125. different explanation of them, this can often help a lot.
  126.  
  127.  
  128. I have mentioned EXAMPLE1.Amos so many times you must be chomping at 
  129. the bit to LOAD it, so off you go and do it.  Don`t be afraid to read this
  130. chapter again if there is anything you do not understand, good luck.
  131.  
  132.  
  133. End of chapter one.
  134.  
  135.  
  136.   
  137.